<template>
  <el-card>
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="学员信息" name="first">
        <StuDetails></StuDetails>
      </el-tab-pane>
      <el-tab-pane label="学员收支" name="second">
        <StuMoney />
      </el-tab-pane>
      <el-tab-pane label="考试科目" name="third">
        <PersonalExam />
      </el-tab-pane>
      <el-tab-pane label="预考记录" name="fourth">
        <TimeLine />
      </el-tab-pane>
      <el-tab-pane label="练车记录" name="fifth">
        <StuTranRecord />
      </el-tab-pane>
    </el-tabs>
  </el-card>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import StuTranRecord from "./compontents/Stu_tranRecord.vue";
import StuDetails from "./compontents/Stu_Details.vue";
import type { TabsPaneContext } from "element-plus";
import StuMoney from "./compontents/Stu_ExpendMoney.vue";
import TimeLine from "../exam/components/timeLine.vue";
import PersonalExam from "../exam/components/personalExam.vue";

// 实现页面跳转
const activeName = ref("first");

// const handleClick = (tab: TabsPaneContext, event: Event) => {
//   // console.log(tab, event);
// };
const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event);
};
</script>
<style>
.demo-tabs>.el-tabs__content {
  color: #6b778c;
  font-weight: normal;
}
</style>
